﻿namespace Triad.Controls
{
    using System;
    using System.Security.Permissions;
    using System.Web;
    using System.Data;

    [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    public sealed class lvUpdateEventArgs : EventArgs
    {
        private DataSet _dataSet { get; set; }
        private string _retVal { get; set; }
        private string _eventTarget { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateEventArgs"/> class.
        /// </summary>
        /// <param name="_DS">The DataSet.</param>
        public lvUpdateEventArgs(DataSet dataSet, string eventTarget, string retVal)
        {
            this._dataSet = dataSet;
            this._retVal = retVal;
            this._eventTarget = eventTarget;
        }
        
        /// <summary>
        /// DataSet holding the changes.
        /// </summary>
        /// <returns></returns>
        public DataSet tfDataset
        {
            get
            {
                return this._dataSet;
            }
        }
        public string RetVal
        {
            get
            {
                return this._retVal;
            }
            set
            {
                _retVal = value;
            }
        }
        public string EventTarget
        {
            get
            {
                return this._eventTarget;
            }
            set
            {
                _eventTarget = value;
            }
        }
     }
}
